/*
 * @Author: wangzhichiao<https://github.com/wzc570738205>
 * @Date: 2020-03-12 20:16:22
 * @LastEditors: wangzhichiao<https://github.com/wzc570738205>
 * @LastEditTime: 2020-04-08 17:47:32
 */
import request from "@/utils/request";
/**登录服务 */
var loginService = {
  /**
   * @description: 登录接口
   * 目录查询-服务-订阅方式下拉列表框-接口调用选项
   * @param {type}
   * @return:
   */
  login(param) {
    return request({
      url: "/DoorManagement/user/login",
      method: "post",
      params: param,
      headers: { showLoading: false }
    });
  },
  /**
   * @description: 获取验证码接口
   * 目录查询-服务-订阅方式下拉列表框-接口调用选项
   * @param {type}
   * @return:
   */
  getVerifyCode(param) {
    return request({
      url: "/DoorManagement/user/getVerifyCode",
      method: "get",
      data: param,
      headers: { loadingTarget: "#mycanvas" }
    });
  },
  /**
   * @description: 获取验证码接口
   * 目录查询-服务-订阅方式下拉列表框-接口调用选项
   * @param {type}
   * @return:
   */
  getUserInfo() {
    return request({
      url: "/DoorManagement/user/getUser",
      method: "get",
      data: {},
      headers: { showLoading: false }
    });
  },
  /**
   * @description: 获取验证码接口
   * 目录查询-服务-订阅方式下拉列表框-接口调用选项
   * @param {type}
   * @return:
   */
  loginOut() {
    return request({
      url: "/DoorManagement/user/loginOut",
      method: "get",
      data: {},
      headers: { showLoading: false }
    });
  }
};
export { loginService };
